var e;

e = require("../@babel/runtime/helpers/typeof"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "common/main" ], {
    "18b9": function(e, t, n) {
        var o = n("40b1");
        n.n(o).a;
    },
    "1bcb": function(t, n, o) {
        (function(t) {
            o("98af");
            var n = s(o("66fd")), r = s(o("ab68")), a = l(o("a9a4")), u = l(o("e554")), i = l(o("b38c")), c = l(o("5fa0")), f = s(o("1fae"));
            o("8264");
            var d = s(o("212c"));
            function p() {
                if ("function" != typeof WeakMap) return null;
                var e = new WeakMap();
                return p = function() {
                    return e;
                }, e;
            }
            function l(t) {
                if (t && t.__esModule) return t;
                if (null === t || "object" !== e(t) && "function" != typeof t) return {
                    default: t
                };
                var n = p();
                if (n && n.has(t)) return n.get(t);
                var o = {}, r = Object.defineProperty && Object.getOwnPropertyDescriptor;
                for (var a in t) if (Object.prototype.hasOwnProperty.call(t, a)) {
                    var u = r ? Object.getOwnPropertyDescriptor(t, a) : null;
                    u && (u.get || u.set) ? Object.defineProperty(o, a, u) : o[a] = t[a];
                }
                return o.default = t, n && n.set(t, o), o;
            }
            function s(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            function b(e, t) {
                var n = Object.keys(e);
                if (Object.getOwnPropertySymbols) {
                    var o = Object.getOwnPropertySymbols(e);
                    t && (o = o.filter(function(t) {
                        return Object.getOwnPropertyDescriptor(e, t).enumerable;
                    })), n.push.apply(n, o);
                }
                return n;
            }
            function h(e, t, n) {
                return t in e ? Object.defineProperty(e, t, {
                    value: n,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : e[t] = n, e;
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = o, n.default.mixin(d.default), n.default.config.productionTip = !1, 
            n.default.prototype.$api = a, n.default.prototype.$common = u, n.default.prototype.$db = i, 
            n.default.prototype.$config = c, n.default.prototype.$store = f.default, n.default.component("loadMore", function() {
                o.e("components/loadmore/loadmore").then(function() {
                    return resolve(o("ad54"));
                }.bind(null, o)).catch(o.oe);
            }), r.default.mpType = "app", t(new n.default(function(e) {
                for (var t = 1; t < arguments.length; t++) {
                    var n = null != arguments[t] ? arguments[t] : {};
                    t % 2 ? b(Object(n), !0).forEach(function(t) {
                        h(e, t, n[t]);
                    }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : b(Object(n)).forEach(function(t) {
                        Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
                    });
                }
                return e;
            }({}, r.default))).$mount();
        }).call(this, o("543d").createApp);
    },
    "21bf": function(e, t, n) {
        var o = n("4173");
        n.n(o).a;
    },
    "370e": function(e, t, n) {
        n.r(t);
        var o = n("3b38"), r = n.n(o);
        for (var a in o) "default" !== a && function(e) {
            n.d(t, e, function() {
                return o[e];
            });
        }(a);
        t.default = r.a;
    },
    "3b38": function(e, t, n) {
        (function(e) {
            Object.defineProperty(t, "__esModule", {
                value: !0
            }), t.default = void 0;
            var n = {
                data: function() {
                    return {
                        share: {
                            title: "",
                            imgUrl: ""
                        }
                    };
                },
                onLaunch: function(t) {
                    var o = this;
                    if (console.log("App-onLaunch-options:", t), e.onAppRoute(function() {
                        var t = getCurrentPages(), n = t[t.length - 1], r = require("../siteinfo.js").siteroot;
                        n && n.route.indexOf("pages/login/login") < 0 && n.route.indexOf("pages/member/invite/invite") < 0 && n.route.indexOf("pages/find/index/index") < 0 && n.route.indexOf("pages/delivery/delivery") < 0 && n.route.indexOf("pages/zhuli/zhuli") < 0 ? (e.showShareMenu({
                            menus: [ "shareAppMessage", "shareTimeline" ]
                        }), n.onShareAppMessage = function(e) {
                            o.$api.getwxsharelistApi({
                                type: 1
                            }, function(e) {
                                1 == e.code && (o.share.title = e.data.title, o.share.imgUrl = r + e.data.photo, 
                                "/pages/index/index?user_id=".concat(o.$db.get("userId")));
                            });
                            const t = new Promise(e => {
                                setTimeout(() => {
                                    e({
                                        title: o.share.title,
                                        imageUrl: o.share.imgUrl,
                                        path: "/pages/index/index?user_id=".concat(o.$db.get("userId"))
                                    });
                                }, 150);
                            });
                            return {
                                title: "我为你下次寄快递省了6元~全国上门取件",
                                imageUrl: r+"/static/default/wap/img/share.png.png",
                                path: "/pages/index/index?user_id=".concat(o.$db.get("userId")),
                                promise: t
                            };
                        }) : 0 != n.route.indexOf("pages/member/invite/invite") && 0 != n.route.indexOf("pages/find/index/index") || e.hideShareMenu(), 
                        n && n.route.indexOf("pages/login/login") < 0 && n.route.indexOf("pages/member/invite/invite") < 0 && n.route.indexOf("pages/find/index/index") < 0 && n.route.indexOf("pages/delivery/delivery") < 0 && n.route.indexOf("pages/zhuli/zhuli") < 0 ? (e.showShareMenu({
                            menus: [ "shareAppMessage", "shareTimeline" ]
                        }), n.onShareTimeline = function(e) {
                            return {
                                title: o.share.title,
                                imageUrl: o.share.imgUrl
                            };
                        }) : 0 != n.route.indexOf("pages/member/invite/invite") && 0 != n.route.indexOf("pages/find/index/index") || e.hideShareMenu();
                    }), t.query) {
                        if (t.query.encmob && 0 == !!this.$db.get("userToken")) {
                            var r = t.query.promote || "";
                            this.$api.silentInApi({
                                encmob: t.query.encmob,
                                promote: r
                            }, function(e) {
                                "1" == e.code && (n.$db.set("userToken", e.data.token), n.$db.set("userId", e.data.user_id), 
                                n.$db.set("mobile", e.data.mobile), n.$api.getUserInfoApi({
                                    user_id: e.data.user_id
                                }, function(e) {
                                    if ("1" == e.code) {
                                        var t = e.data;
                                        n.$db.set("userInfo", t);
                                    }
                                }));
                            });
                        }
                        if (t.query.source) {
                            var i = t.query.source;
                            console.log("options.query.source:", t.query.source), "payed" == i && this.$db.set("h5payed", "1");
                        }
                        if (t.query.h5auth) {
                            var a = t.query.h5auth;
                            console.log("options.query.h5auth:", t.query.h5auth), this.$db.set("h5auth", a);
                        }
                    }
                },
                watch: {},
                onShow: function(e) {
                    console.log("App-onShow-options:", e), this.mpUpdate(), this.getShareInfomation();
                },
                onHide: function() {},
                methods: {
                    mpUpdate: function() {
                        var t = e.getUpdateManager();
                        t.onCheckForUpdate(function(e) {
                            console.log("onCheckForUpdate:请求完新版本信息的回调", e.hasUpdate);
                        }), t.onUpdateReady(function(n) {
                            e.showModal({
                                title: "更新提示",
                                content: "新版本已经准备好，是否重启应用？",
                                success: function(e) {
                                    e.confirm && t.applyUpdate();
                                }
                            });
                        }), t.onUpdateFailed(function(e) {
                            console.log("onUpdateFailed:新版本下载失败");
                        });
                    },
                    getShareInfomation: function() {
                        var e = this;
                        return new Promise(function(t) {
                            var n = require("../siteinfo.js").siteroot;
                            e.$api.getwxsharelistApi({
                                type: 2
                            }, function(t) {
                                1 == t.code && (e.share.title = t.data.title, e.share.imgUrl = n + t.data.photo);
                            });
                        });
                    }
                }
            };
            t.default = n;
        }).call(this, n("543d").default);
    },
    "40b1": function(e, t, n) {},
    4173: function(e, t, n) {},
    ab68: function(e, t, n) {
        n.r(t);
        var o = n("370e");
        for (var r in o) "default" !== r && function(e) {
            n.d(t, e, function() {
                return o[e];
            });
        }(r);
        n("21bf"), n("18b9");
        var a = n("f0c5"), u = Object(a.a)(o.default, void 0, void 0, !1, null, null, null, !1, void 0, void 0);
        t.default = u.exports;
    }
}, [ [ "1bcb", "common/runtime", "common/vendor" ] ] ]);